.PHONY: libsmtp.so

libsmtp.so: send_mail.o error.o change64.o
	gcc -shared -o libsmtp.so send_mail.o error.o change64.o
send_mail.o: send_mail.c send_mail.h error.h change64.h
	gcc -fpic -c send_mail.c 
error.o: error.c error.h
	gcc -fpic -c error.c
change64.o: change64.c change64.h
	gcc -fpic -c change64.c
clean:
	rm *.o $(TARGET)
